Use the following code as an example of how to call the PEGetReportTitle and PESetReportTitle functions:
HANDLE titleHandle;
short titleLength;
char *titleString;
if (!PEGetReportTitle(Job, &titleHandle, &titleLength)){
// Handle error
}
// Allocate buffer
titleString = (char*)malloc(titleLength);
if (!PEGetHandleString(titleHandle, titleString, titleLength)){
// Handle error
}
char title [] = "My Report";
if (!PESetReportTitle(Job, title)){
// Handle error
}
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |